﻿namespace Ensemble_Windows
{
    /// <summary>
    /// 地图配置
    /// </summary>
    public class MapHelper
    {
        /// <summary>
        /// 获取X轴地表数量
        /// </summary>
        /// <param name="width">窗口宽度</param>
        /// <returns>数量</returns>
        public static int GetTiledNumX(int width)
        {
            return width / TiledConfig.Tiled_Width;
        }

        /// <summary>
        /// 获取Y轴地表数量
        /// </summary>
        /// <param name="height">窗口高度</param>
        /// <returns>数量</returns>
        public static int GetTiledNumY(int height)
        {
            return height / TiledConfig.Tiled_Height;
        }
    }
}
